﻿#pragma once

#include <WinSock2.h>
#include "OnlineUserList.h"

typedef struct Server Server;

typedef void(*ServerDelete)(Server*);
typedef BOOL(*ServerStart)(Server*);

// 服务器
struct Server {
    OnlineUserList* mOnlineUsers;   // 在线用户列表
    SOCKET mSocket;                 // 套接字

    ServerDelete deleteSelf;
    ServerStart start;
};

Server* New_Server();
